#region head comment
/*
Code generate by YhdSdkTool.
email:starpeng@vip.qq.com
2013-01-21 23:00:57:779 +08:00
*/
#endregion

using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using YhdSdk.Domain;
using YhdSdk.Domain.Group;
using YhdSdk.Response.Group;

namespace YhdSdk.Request.Group
{
    /// <summary>
    /// 团购报名查询
    ///<para></para>
    ///<para>获取团购报名的产品信息,查询成功，则返回查询成功记录数及相应的团购产品信息， 查询失败，则返回查询失败记录数，及相应的错误信息描述</para>
    ///<para>。</para>
    /// </summary>
    public class YhdGroupBuyProductsGetRequest : IYhdRequest<YhdGroupBuyProductsGetResponse>
    {
        /// <summary>
        /// 当前页数
        /// </summary>
        /// <example>1</example>
        [XmlElement("curPage")]
        public Nullable<Int32> CurPage
        {
            get;
            set;
        }

        /// <summary>
        /// 每页显示记录数，默认50，最大100
        /// </summary>
        /// <example>20</example>
        [XmlElement("pageRows")]
        public Nullable<Int32> PageRows
        {
            get;
            set;
        }

        /// <summary>
        /// 团购开始时间查询起始时间(yyyy-MM-dd HH:mm:ss格式)
        /// </summary>
        [XmlElement("startTimeBegin")]
        public String StartTimeBegin
        {
            get;
            set;
        }

        /// <summary>
        /// 团购开始时间查询结束时间(yyyy-MM-dd HH:mm:ss格式)
        /// </summary>
        [XmlElement("startTimeEnd")]
        public String StartTimeEnd
        {
            get;
            set;
        }

        /// <summary>
        /// 团购结束时间查询起始时间(yyyy-MM-dd HH:mm:ss格式)
        /// </summary>
        [XmlElement("endTimeBegin")]
        public String EndTimeBegin
        {
            get;
            set;
        }

        /// <summary>
        /// 团购结束时间查询截止时间(yyyy-MM-dd HH:mm:ss格式)
        /// </summary>
        [XmlElement("endTimeEnd")]
        public String EndTimeEnd
        {
            get;
            set;
        }

        /// <summary>
        /// 团购状态(WAIT_VERIFYING:待审核;VERIFY_REFUESD:审核拒绝;VERIFY_PASSED:审核通过;GROUPON:团购中;
        ///<para>GROUPON_SUCCESS:团购中-成功;GROUPON_FULLED:团购中-人数满;FINISHED_FAILUE:结束-失败;FINISHED_SUCCESS:结束-成功;GROUP_FINISHED:处理完毕)</para>
        /// </summary>
        [XmlElement("groupStatus")]
        public String GroupStatus
        {
            get;
            set;
        }

        /// <summary>
        /// Api接口名称
        /// </summary>
        public String ApiName
        {
            get{ return "yhd.group.buy.products.get"; }
        }

        /// <summary>
        /// 获取参数列表
        /// </summary>
        public IDictionary<string, string> GetParameters()
        {
            YhdDictionary parameters = new YhdDictionary();
            parameters.Add("curPage" ,this.CurPage);
            parameters.Add("pageRows" ,this.PageRows);
            parameters.Add("startTimeBegin" ,this.StartTimeBegin);
            parameters.Add("startTimeEnd" ,this.StartTimeEnd);
            parameters.Add("endTimeBegin" ,this.EndTimeBegin);
            parameters.Add("endTimeEnd" ,this.EndTimeEnd);
            parameters.Add("groupStatus" ,this.GroupStatus);
            return parameters;
        }

        /// <summary>
        /// 验证参数
        /// </summary>
        public void Validate()
        {
        }

    }
}
